﻿using System;
using System.Data;
using System.Collections;

namespace BizElements.Core
{
    /// <summary>Builds objects from retrieved data, ie. <see cref="IDataReader"/>.</summary>
    public interface IObjectReader
    {
        /// <summary>Builds objects from retrieved data.</summary>        
        /// <param name="openedDataReader">Opened data reader that contains all fields required to build objects.</param>
        /// <param name="collection">A collection to fill with objects built from data.</param>
        void FillCollection(IDataReader openedDataReader, IList collection);
    }
}